package com.shop.shopserver.service;

import com.shop.shoppojo.entity.Goods;
import com.shop.shoppojo.vo.GoodsDetailVO;
import com.shop.shoppojo.vo.HomeDataVO;
import org.springframework.stereotype.Service;

import java.util.List;


public interface GoodsService {
    /**
     * 获取商品详情页
     *
     * @param goodsId
     * @return
     */
    GoodsDetailVO getGoodsDetailByGoodsId(Long goodsId);

    /**
     * 获取首页数据
     */
    HomeDataVO getHomeData() throws Exception;

    /**
     * 获取词条相关的商品数据
     * @throws Exception
     */
    List<Goods> getUserSearchGoodsData(String searchWord) throws Exception;
}
